﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using V = Science.Mathematics.VectorCalculus;

namespace VectorCalculus5Ed.Chapter1.Section2
{
    public class Example11
    {
        public Example11()
		{
		}
		private string result;
		public string Result
		{
			get{return result;}
		}
		public void Compute()
		{
            V.Vector v = 10.0*V.UnitVector.i + 6.0*V.UnitVector.j
                + V.UnitVector.k;

            V.Vector r = 1.0 * V.UnitVector.i + 2.0*V.UnitVector.j + 3.0*V.UnitVector.k;

            V.Vector f = r + 1.0/60.0*v;  // after 1 minute

            result += f[0].ToString() + "   " +
                f[1].ToString() + "   " + f[2].ToString() + "\r\n";
         }
    }
}

// 1.16666666666667   2.1   3.01666666666667